package com.yuantu.judiciary.service;

import com.yuantu.judiciary.exception.ServiceException;
import com.yuantu.judiciary.model.api.BaseApiRequestMsg;

/**
 * 外部接口
 *
 * @author syw
 * @since 2023-06-30
 **/
public interface IOpenApiRequestService<T extends BaseApiRequestMsg, R> {

    /**
     * 外部接口调用
     *
     * @param baseApiRequestMsg 入参
     * @return 返回值
     * @throws ServiceException .
     */
    R emitHttpRequest(T baseApiRequestMsg) throws ServiceException;

    /**
     * 外部接口调用（不加解密）
     *
     * @param baseApiRequestMsg 入参
     * @return 返回值
     * @throws ServiceException .
     */
    R emitHttpRequestNotEncrypt(T baseApiRequestMsg) throws ServiceException;

}
